Object.defineProperty(String.prototype, 'capitalize', { value: function() { return this.charAt(0).toUpperCase() + this.slice(1); }, enumerable: false });. ... <看更多>
Search
Search
Object.defineProperty(String.prototype, 'capitalize', { value: function() { return this.charAt(0).toUpperCase() + this.slice(1); }, enumerable: false });. ... <看更多>
... <看更多>
Converts all the alphabetic characters in a string to uppercase. ... This site is now available on github. DOCS · javascript · String · toUpperCase ... ... <看更多>